package com.cw.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author smq
 * @since 2021-05-09
 */
@ApiModel(value = "")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PATIENT_BED_MIDDLE_RJSS")
public class PatientBedMiddleRjss implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "住院号")
    @ExcelProperty(value = "INPATIENT_NO")
    @TableField("INPATIENT_NO")
    private String inpatientNo;

    @ApiModelProperty(value = "病人标识")
    @ExcelProperty(value = "PATIENT_NO")
    @TableField("PATIENT_NO")
    private String patientNo;

    @ApiModelProperty(value = "身份证号")
    @ExcelProperty(value = "IDENNO")
    @TableField("IDENNO")
    private String idenno;

    @ApiModelProperty(value = "电子住院证主键")
    @ExcelProperty(value = "PREID")
    @TableField("PREID")
    private BigDecimal preid;

    @ApiModelProperty(value = "院区")
    @ExcelProperty(value = "YARD")
    @TableField("YARD")
    private String yard;

    @ApiModelProperty(value = "病区编码")
    @ExcelProperty(value = "NURSE_CELL_CODE")
    @TableField("NURSE_CELL_CODE")
    private String nurseCellCode;

    @ApiModelProperty(value = "病区名称")
    @ExcelProperty(value = "NURSE_CELL_NAME")
    @TableField("NURSE_CELL_NAME")
    private String nurseCellName;

    @ApiModelProperty(value = "病区编码")
    @ExcelProperty(value = "NURSE_CELL_CODE_BEFORE")
    @TableField("NURSE_CELL_CODE_BEFORE")
    private String nurseCellCodeBefore;


    @ApiModelProperty(value = "科室编码")
    @ExcelProperty(value = "DEPT_CODE")
    @TableField("DEPT_CODE")
    private String deptCode;

    @ApiModelProperty(value = "科室名称")
    @ExcelProperty(value = "DEPT_NAME")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty(value = "床号")
    @ExcelProperty(value = "BED_NO")
    @TableField("BED_NO")
    private String bedNo;

    @ApiModelProperty(value = "状态 1 已预约 2 已登记 3 已接诊 4 取消登记")
    @ExcelProperty(value = "STATE")
    @TableField("STATE")
    private String state;

    @ApiModelProperty(value = "操作人工号")
    @ExcelProperty(value = "OPER_NO")
    @TableField("OPER_NO")
    private String operNo;

    @ApiModelProperty(value = "操作人姓名")
    @ExcelProperty(value = "OPEN_NAME")
    @TableField("OPEN_NAME")
    private String openName;

    @ApiModelProperty(value = "操作时间")
    @ExcelProperty(value = "OPER_TIME")
    @TableField("OPER_TIME")
    private LocalDateTime operTime;

    @ApiModelProperty(value = "病人姓名")
    @ExcelProperty(value = "NAME")
    @TableField(exist = false)
    private String name;

}
